package com.csdj.questions.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 话题表
 * </p>
 *
 * @author 郭成星
 * @since 2022-03-06
 */
@TableName("t_topic")
public class TTopic implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 表Id
     */
    @TableId(value = "Id", type = IdType.AUTO)
    private Long id;

    /**
     * 话题Id
     */
    private Integer topicId;

    /**
     * 话题类别表Id
     */
    private String topicClassId;

    /**
     * 话题名称
     */
    private String topicName;

    /**
     * 话题描述
     */
    private String topicDescribe;

    /**
     * 照片
     */
    private String photo;

    /**
     * 创建时间
     */
    private LocalDate createTime;

    /**
     * 用户id
     */
    private Integer userId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Integer getTopicId() {
        return topicId;
    }

    public void setTopicId(Integer topicId) {
        this.topicId = topicId;
    }
    public String getTopicClassId() {
        return topicClassId;
    }

    public void setTopicClassId(String topicClassId) {
        this.topicClassId = topicClassId;
    }
    public String getTopicName() {
        return topicName;
    }

    public void setTopicName(String topicName) {
        this.topicName = topicName;
    }
    public String getTopicDescribe() {
        return topicDescribe;
    }

    public void setTopicDescribe(String topicDescribe) {
        this.topicDescribe = topicDescribe;
    }
    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }
    public LocalDate getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDate createTime) {
        this.createTime = createTime;
    }
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "TTopic{" +
            "id=" + id +
            ", topicId=" + topicId +
            ", topicClassId=" + topicClassId +
            ", topicName=" + topicName +
            ", topicDescribe=" + topicDescribe +
            ", photo=" + photo +
            ", createTime=" + createTime +
            ", userId=" + userId +
        "}";
    }
}
